package org.dregs.pojo.tuple;

import java.util.HashMap;
import java.util.Map;

public class Tuple<$1> {
    private $1 _1;

    public $1 get_1() {
        return _1;
    }

    public void set_1($1 _1) {
        this._1 = _1;
    }

    public $1 _1() {
        return _1;
    }

    public void _1($1 _1) {
        this._1 = _1;
    }

    public Tuple() {
    }

    public Tuple($1 _1) {
        this._1 = _1;
    }

    public Map toMap(String _1_){
        HashMap<String, Object> stringObjectMap = new HashMap<>();
        stringObjectMap.put(_1_,_1());
        return stringObjectMap;
    }

    public Map toMap(Map stringObjectMap ,String _1_){
        stringObjectMap.put(_1_,_1());
        return stringObjectMap;
    }

    public static <$1> Tuple<$1> initialize($1 _1){
        return new Tuple<$1>();
    }
    public static <$1,$2> Tuple2<$1,$2> initialize($1 _1, $2 _2){
        return new Tuple2<$1,$2>(_1, _2);
    }
    public static <$1,$2,$3> Tuple3<$1,$2,$3> initialize($1 _1, $2 _2,$3 _3){
        return new Tuple3<$1,$2,$3>(_1, _2,_3);
    }
    public static <$1,$2,$3,$4> Tuple4<$1,$2,$3,$4> initialize($1 _1, $2 _2,$3 _3,$4 _4){
        return new Tuple4<$1,$2,$3,$4>(_1, _2,_3,_4);
    }
    public static <$1,$2,$3,$4,$5> Tuple5<$1,$2,$3,$4,$5> initialize($1 _1, $2 _2,$3 _3,$4 _4,$5 _5){
        return new Tuple5<$1,$2,$3,$4,$5>(_1, _2,_3,_4,_5);
    }
    public static <$1,$2,$3,$4,$5,$6> Tuple6<$1,$2,$3,$4,$5,$6> initialize($1 _1, $2 _2, $3 _3, $4 _4, $5 _5, $6 _6){
        return new Tuple6<$1,$2,$3,$4,$5,$6>(_1, _2, _3, _4, _5, _6);
    }

}
